package com.trumeen.immichgallery.model

import com.trumeen.immichgallery.network.RetrofitClient

data class Asset(
    val id: String,
    val checksum: String,
    val deviceAssetId: String,
    val deviceId: String,
    val duplicateId: Any?,
    val duration: String,
    val fileCreatedAt: String,
    val fileModifiedAt: String,
    val hasMetadata: Boolean,
    val isArchived: Boolean,
    val isFavorite: Boolean,
    val isOffline: Boolean,
    val isTrashed: Boolean,
    val libraryId: String,
    val livePhotoVideoId: String?,
    val localDateTime: String,
    val originalFileName: String,
    val originalMimeType: String,
    val originalPath: String,
    val ownerId: String,
    val people: List<Any>,
    val resized: Boolean,
    val thumbhash: String?,
    val type: String,
    val updatedAt: String,
    val visibility: String
) {
    val thumbnailUrl: String get() = "${RetrofitClient.baseUrl}assets/$id/thumbnail"
    val originalUrl: String get() = "${RetrofitClient.baseUrl}assets/$id/original"
}

data class MemoriesResponseItem(
    val assets: List<Asset>,
    val createdAt: String,
    val data: MemoryData,
    val hideAt: String,
    val id: String,
    val isSaved: Boolean,
    val memoryAt: String,
    val ownerId: String,
    val showAt: String,
    val type: String,
    val updatedAt: String
)

data class MemoryData(val year: Int)